
<h1>Authentication page</h1>

<div class="Background">
<div class="Authentication Panel">

	<div class="Authentication Box">
		<h3>Authenticate</h3>
		<div class="Form Content">
		<?php if( $this->hasFailed() ) : ?>
		<div class="Message">
			<?php foreach( $this->getMessages() as $message ) : ?>
			<p><?php echo _s($message); ?></p>
			<?php endforeach ?>
			<div class="Close">x</div>
		</div>
		<?php endif ?>
		
		<p>Please, authenticate to access your account.</p>
		
		<form method="post" action="Authenticate">
			<input type="hidden" name="Action_Authenticate" value="true" />
			<?php echo $this->getTabPane()->process(); ?>
			<dl>
				<dt></dt>
				<dd><label><input type="checkbox" <?php if( $this->hasRemembrance() ) : ?>checked="checked"<?php endif ?> name="remembrance" />
				Keep me logged in</label></dd>
			</dl>
			<input type="submit" class="Submit" />
		</form>

		<a onclick="$(this).closest( '.Panel' ).find( 'form' ).submit()" class="Button">Log in</a>
		<div style="clear: both"></div>
		</div>
	</div>
	<p><a href="Register">Don't you have an account ?</a></p>

</div>
</div>
